<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="apple-touch-fullscreen" content="yes"/>
    <meta name="format-detection" content="email=no" />
    <meta name="wap-font-scale"  content="no" />
    <meta name="viewport" content="user-scalable=no, width=device-width" />
    <meta content="telephone=no" name="format-detection" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>文件上传</title>

    <link th:href="@{/axui-v2.1.1/css/ax.css}" rel="stylesheet" type="text/css" >
    <link th:href="@{/axui-v2.1.1/css/ax-response.css}" rel="stylesheet" type="text/css" >
</head>
<body>
    <header class="ax-header">
        <div class="ax-row">
            <div class="ax-col">
                <a th:href="@{/download/index}" class="ax-logo">
                    <img th:src="@{/common/images/logo.png}" alt="File Management"/>
                </a>
            </div>
            <div class="ax-nav">
                <div class="ax-item">
                    <a th:href="@{/download/index}" class="ax-text">文件列表</a>
                    <span class="ax-line"></span>
                </div>
                <div class="ax-item ax-selected">
                    <a th:href="@{/upload/index}" class="ax-text">文件上传</a>
                    <span class="ax-line"></span>
                </div>
                <div class="ax-item">
                    <a th:href="@{/logging/index}" target="_blank" class="ax-text">在线日志</a>
                    <span class="ax-line"></span>
                </div>
            </div>
        </div>
    </header>
    <div class="ax-space-header"></div>
    <div>
        <div class="ax-form-group">
            <div class="ax-flex-row">
                <div class="ax-col">
                    <input type="hidden" multiple id="upload"/>
                </div>
            </div>
        </div>
    </div>
    <script th:src="@{/axui-v2.1.1/js/ax.js}" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
        window.onload = () => {
            let accept = "jpg,jpeg,gif,png,svg,doc,docx,xls,xlsx,txt,mp4,mp3,pdf,exe,msi,jar,zip," +
                "rar,tar,gz,conf,sql,sh,bat,log,out,ico,rpm,deb,dmg,avi,m3u8,ts,js,css,html,vsdx,dmp,7z," +
                "ppt,pptx";
            let upload = new axUpload('#upload', {
                type: 'gallery',
                url: 'execute',
                action: 'manual',
                clearBtn: { show: true },
                uploadBtn: { show: true },
                max: 0,
                size: 0,
                summaryShow: true,
                accept: accept
            });
        }
    </script>
</body>
</html>